<script setup>
import ScaleScreen from "/src/components/scale-screen/index.vue";
</script>
<template>
  <ScaleScreen>
    <div class="app">
      <div class="title" @click="$router.push('/')">诺基亚智能问答平台</div>
      <div class="body">
        <router-view></router-view>
      </div>
    </div>
  </ScaleScreen>
</template>
<style lang="scss" scoped>
.body {
  width: 100%;
  height: 88%;
  padding: 0 50px;
}
.app {
  background: url("/src/assets/images/bg.png") no-repeat center center fixed;
  background-size: cover;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  &::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 320px;
    height: 100%;
    background: url("/src/assets/images/bg-decorate.png") no-repeat fixed;
    pointer-events: none;
  }
  &::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 320px;
    height: 100%;
    background: url("/src/assets/images/bg-decorate.png") no-repeat fixed;
    transform: scaleX(-1);
    pointer-events: none;
  }
  .title {
    cursor: pointer;
    width: 1920px;
    height: 100px;
    background: url("/src/assets/images/bg-title.png") no-repeat center center;
    color: #eff8fc;
    text-shadow: 0 4px 1px rgba(19, 80, 143, 0.66),
      0 0 18px rgba(130, 165, 255, 0.35);
    font-family: YouSheBiaoTiHei;
    font-size: 48px;
    font-weight: 400;
    letter-spacing: 4.8px;
    text-align: center;
  }
}
</style>
